import QtQuick 1.0

Rectangle {
    id: container

   function show(text) {
      dialogText.text = text;
      container.opacity = 0.7;
   }

   function hide() {
      container.opacity = 0;
   }

   width: dialogText.width + 20
   height: dialogText.height + 20
   opacity: 0

   
   color: "steelblue"
   radius: 6

   Text {
      id: dialogText
      anchors.centerIn: parent
      text: ""
   }

   MouseArea {
      anchors.fill: parent
      onClicked: hide();
   }
}